﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INSTA.BankSystem.BLL
{
    /// <summary>
    /// Silver Account
    /// </summary>
    public class SilverAccount : AccountBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SilverAccount"/> class.
        /// </summary>
        /// <param name="customer">The customer.</param>
        /// <param name="initialDeposit">The initial deposit.</param>
         internal SilverAccount(Customer customer, double initialDeposit)
            : base(customer, initialDeposit)
        {}


        /// <summary>
        /// Withdraws the monthly fees.
        /// </summary>
        public override void WithdrawMonthlyFees()
        {
            Withdraw(10);
        }

        /// <summary>
        /// Gets the maximum authorized overdrawn (découvert) amount.
        /// </summary>
        /// <returns>
        /// the maximum authorized overdrawn (découvert) amount.
        /// </returns>
        public override double GetAuthorizedOverdrawn()
        {
            return 1000;
        }
    }
}
